/*
 * Copyright 2013-2018 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.learn.springboot3.pojo;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.xmlbeans.UserType;
import org.springframework.format.annotation.DateTimeFormat;

import java.beans.Transient;
import java.time.LocalDate;
import java.util.Date;
import java.util.List;

@TableName("iam_user")
@Data
public class User {

    private Long id;


    private String loginName;


    private String email;



    private Long organizationId;


    private String realName;


    private String phone;


    private String internationalTelCode;


    private String imageUrl;


    private String profilePhoto;

    private String language;


    private String timeZone;


    private Date lastPasswordUpdatedAt;


    private Date lastLoginAt;


    @TableField("is_enabled")
    private Boolean enabled;




    private Date lockedUntilAt;


    private Integer passwordAttempt;


    private String userType;

    private Date creationDate;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastUpdateDate;


}
